﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using kTudu.Web.Factories;
using kTudu.Web.Models;

namespace kTudu.Web.Applications
{
    public class BaseApplication : IDisposable
    {
        protected Entities _context = null;

        public BaseApplication()
        {
            _context = ModelFactory.GetInstance();
        }

        public BaseApplication(Entities context)
        {
            _context = context;
        }

        public void Dispose()
        {
            _context = null;
        }
    }
}